package com.durian.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 是否默认地址(不是：0 是：1)
 *
 * @author Durian
 * @date 2023/11/26
 */
@Getter
@AllArgsConstructor
public enum AddressStatus implements IEnum<Integer> {
    IsDefault(1, "默认地址"),
    NotDefault(0, "非默认地址");

    @EnumValue
    private final Integer value;
    @JsonValue
    private final String name;
}
